﻿//SmartOrderCondition.cs
//Copyright (c) 2013 StockSharp LLC, all rights reserved.
//This code module is part of StockSharp library.
//This code is licensed under the GNU GENERAL PUBLIC LICENSE Version 3.
//See the file License.txt for the license details.
//More info on: http://stocksharp.com

namespace StockSharp.Smart
{
	using System;
	using System.Runtime.Serialization;

	using StockSharp.BusinessEntities;

	/// <summary>
	/// Условие заявок (например, параметры стоп- или алго- заявков), специфичных для <see cref="SmartTrader"/>.
	/// </summary>
	[Serializable]
	[DataContract]
	public class SmartOrderCondition : OrderCondition
	{
		/// <summary>
		/// Создать <see cref="SmartOrderCondition"/>.
		/// </summary>
		public SmartOrderCondition()
		{
			StopPrice = 0;
		}

		/// <summary>
		/// Стоп-цена заявки.
		/// </summary>
		[DataMember]
		public decimal StopPrice
		{
			get { return (decimal)Parameters["StopPrice"]; }
			set { Parameters["StopPrice"] = value; }
		}
	}
}